  /* 轮播图样式 */
  .carousel {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
  }
  
  .carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
  }
  
  .carousel-item {
    min-width: 100%;
    position: relative;
    display: none;
    transition: transform 0.6s ease;
  }
  
  .carousel-item.active {
    display: block;
  }
  
  .carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
  }
  
  .carousel-caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
  }
  
  .carousel-caption h2 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .carousel-caption p {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .carousel-caption button {
    background-color: #FF6B6B;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .carousel-control-prev,
  .carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
  }
  
  .carousel-control-prev {
    left: 10px;
  }
  
  .carousel-control-next {
    right: 10px;
  }
  
  .carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
  }
  
  .indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
  }
  
  .indicator.active {
    background: white;
  }
.carousel-caption button:nth-child(1) { background: #FF6B6B; } /* 红色 */
.carousel-caption button:nth-child(2) { background: #4ECDC4; } /* 青色 */
.carousel-caption button:nth-child(3) { background: #45B7D1; } /* 蓝色 */
/* 根据实际按钮顺序调整颜色 */
.carousel-caption button {
  transition: transform 0.3s, box-shadow 0.3s;
}
.carousel-caption button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

  /* 快捷入口 */
  /* 快捷入口样式 */
.quick-access {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    padding: 40px 20px;
    background-color: #FFFFFF;
  }
  
  .access-card {
    flex: 1;
    max-width: 250px;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  
  .access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .access-card i {
    font-size: 40px;
    color: #2A3F6B;
    margin-bottom: 15px;
  }
  
  .access-card span {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    color: #333333;
    margin-bottom: 8px;
  }
  
  .access-card p {
    font-size: 14px;
    color: #666666;
  }

  /* 热门资料推荐样式 */
.materials-section {
    padding: 40px 20px;
    background-color: #F5F5F5;
  }
  
  .materials-section h2 {
    color: #2A3F6B;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 30px;
  }
  
  .materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    overflow-x: auto; /* 允许横向滚动 */
    padding-bottom: 20px;
  }
  
  .material-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    min-width: 280px; /* 卡片最小宽度 */
  }
  
  .material-card:hover {
    transform: translateY(-5px);
  }
  
  .tag-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
  }
  
  .tag {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .tag.subject { background: #4A90E2; color: white; }
  .tag.type { background: #FF6B6B; color: white; }
  
  .material-card i.fa-file-pdf {
    font-size: 40px;
    color: #E74C3C;
    display: block;
    margin: 10px 0;
  }
  
  .video-thumbnail {
    position: relative;
    margin-bottom: 15px;
  }
  
  .video-thumbnail img {
    width: 100%;
    border-radius: 8px;
  }
  
  .video-thumbnail .fa-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 30px;
    opacity: 0.8;
  }
  
  .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin: 15px 0;
  }
  
  button.download-btn, button.study-btn {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
  }
  
  button.download-btn {
    background: #4A90E2;
    color: white;
  }
  
  button.study-btn {
    background: #4CAF50;
    color: white;
  }
  
  /* 响应式设计 */
  @media (max-width: 768px) {
    .materials-grid {
      grid-template-columns: 1fr;
    }
  }